﻿@using UserStories.Models
@if (Request.IsAuthenticated)
{
    var user = ViewBag.User as User;
        
    <text>
        Hello, @User.Identity.Name! @(user != null && user.IsSysAdmin? "[SysAdmin]" : "")
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
    </text>
}
